{extend name="layout" /}
{block name="content"}
<div class="mui-content">

	<div class="uk-margin-small-top">
		<!--item-->
		{volist name="lists" id="v"}
		<div class="uk-margin-small">
			<div class="mui-table-view line-height-xsmall mui-in-zero">
                <a  href="{:url('/index/index/index',['id'=>$v.id])}">
				<div class="mui-table-view-cell mui-media">

					<div class="mui-table uk-text-xsmall">
						<div class="mui-table-cell uk-text-middle">
							<img class="uk-border-circle mui-pull-left uk-margin-small-right" src="{$v.avatar}" width="36" height="36">
							<div class="mui-media-body">
								<div class="mui-ellipsis">{$v.nickname}</div>
								<div class="mui-ellipsis uk-text-mini uk-text-muted">
									<span class="uk-margin-small-right">下单类型：{$v.catname}</span>
									<span>{$v.addtime}</span>
								</div>
							</div>
						</div>
						<div class="mui-table-cell uk-text-middle uk-width-1-4 uk-text-right">
							<span class="uk-text-blue uk-text-middle">{$v.price}元</span>
							<span class="tm-badge tm-badge-{eq name='v.typeid' value='1'}orange{else /}blue{/eq}">{$v.typename}</span>
						</div>
					</div>
					<div class="uk-margin-small-top">
						<div class="uk-text-small uk-margin-mini-bottom">
						    {$v.title}
						</div>
						<div class="mui-ellipsis-2 uk-text-muted uk-text-xmini">
						   
							{$v.content}
							
						</div>
						<div class="uk-margin-small-top">
						    {volist name="v.acce" id="vc"}
							<img src="{$vc}" width="50" height="50" />
							{/volist}
						</div>

					</div>

				</div>
				</a>

				<div class="mui-table tm-tableline-tools">
					<div class="mui-table-cell">
						<a class="cocoAjax" confirm="确定要取消收藏吗？" href="Javascript:" ajax-url="{:url('/v1/favorites/add')}" ajax-data="{  contentid:{$v.id}, typeid:2, notcheck:1}" ajax-callback="suc_back"><img src="{$images_path}tm-icon-like-on.png" width="15" height="15" /> <span class="uk-text-middle">{$v.favs}</span></a>
					</div>
					<div class="mui-table-cell">
						<!-- <a class="cocoAjax" href="Javascript:" ajax-url="{:url('/v1/zans/add')}" ajax-callback="suc_back" ajax-data="{  contentid:{$v.id}, typeid:2}" ><img src="{$images_path}tm-icon-zan.png" width="15" height="15" /> <span class="uk-text-middle">{$v.zans}</span></a> -->

						{if condition="check_number_zan($uinfo.id, $v.id, 2)"}
						<img src="{$images_path}yd-icon-zan.png" width="15" height="15" /> <span class="uk-text-middle">{$v.zans}</span>
						{else /}
						<a class="cocoAjax" href="Javascript:" ajax-url="{:url('/v1/zans/add')}" ajax-callback="suc_back" ajax-data="{  contentid:{$v.id}, typeid:2}" ><img src="{$images_path}tm-icon-zan.png" width="15" height="15" /> <span class="uk-text-middle">{$v.zans}</span></a>
						{/if}
                        
						
					</div>
					<div class="mui-table-cell">
						<a  href="{:url('/index/index/addevas',['id'=>$v.id])}"><img src="{$images_path}tm-icon-msg.png" width="15" height="15" /> <span class="uk-text-middle">{$v.evas}</span></a>
					</div>

				</div>

			</div>
		</div>
		<!--/item-->

        {/volist}


	</div>

</div>
{/block}
{block name="script"}
<script type="text/javascript">
	function suc_back (obj, data) {
		coco_refresh_window();
	}
</script>
{/block}